<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>学生请假记录</title>
    <style type="text/css">
        xy-td {
            justify-content: center;
        }
    </style>
</head>
<body>
<script type="module">
    import '../xy-ui/index.js';
</script>
<!-- 记录不可操作，只能查看 -->
<xy-table thead="请假编号,学号,姓名,请假时段,请假事由,请假课程,任课老师,辅导员,审核状态">
    <xy-tr th:each="item:${list}">
        <!-- 让单元格居中 -->
        <xy-td th:text="${item.leId}"></xy-td>
        <xy-td th:text="${item.id}"></xy-td>
        <xy-td th:text="${item.name}"></xy-td>
        <xy-td th:text="${item.duringDate}"></xy-td>
        <xy-td th:text="${item.reason}"></xy-td>
        <xy-td th:text="${item.course}"></xy-td>
        <xy-td th:text="${item.teacher}"></xy-td>
        <xy-td th:text="${item.counselor}"></xy-td>
        <xy-td th:if="${item.status} =='0'">未审核</xy-td>
        <xy-td th:if="${item.status} =='1'">老师审核通过</xy-td>
        <xy-td th:if="${item.status} =='2'">老师未通过</xy-td>
        <xy-td th:if="${item.status} =='3'">已通过</xy-td>
        <xy-td th:if="${item.status} =='4'">辅导员未通过</xy-td>
        <xy-td th:if="${item.status} =='5'">延期申请</xy-td>
        <xy-td th:if="${item.status} =='6'">已完成</xy-td>
    </xy-tr>
</xy-table>

</body>
</html>
